package com.neu.cloudFactory.DAO;

import com.neu.cloudFactory.PO.ProductMsg;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductMsgDAO extends JpaRepository<ProductMsg,Integer> {
    //带有CRUD接口
    ProductMsg findByName(String name);
    List<ProductMsg> findByTypeId (int id);
}
